<!DOCTYPE html>
<html>
<head>
    <title>网盘注册</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <div class="auth-container">
            <h2 class="auth-title">注册账号</h2>
            
            {% with messages = get_flashed_messages(with_categories=true) %}
              {% if messages %}
                {% for category, message in messages %}
                  <div class="flash-messages flash-{{ category }}">
                    {{ message }}
                  </div>
                {% endfor %}
              {% endif %}
            {% endwith %}
            
            <form method="post" style="background:#f9f9f9; padding:2rem; border-radius:8px;">
                <div class="form-group">
                    <label for="email" class="form-label">邮箱</label>
                    <input type="email" id="email" name="email" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="password" class="form-label">密码</label>
                    <input type="password" id="password" name="password" class="form-control" required>
                    <small style="color: #777;">至少6个字符</small>
                </div>
                <div class="form-group">
                    <label for="confirm_password" class="form-label">确认密码</label>
                    <input type="password" id="confirm_password" name="confirm_password" class="form-control" required>
                </div>
                <button type="submit" class="btn btn-block btn-success" style="margin-top:1rem;">
                    <i class="fas fa-user-plus"></i> 注册
                </button>
            </form>
            
            <p style="text-align: center; margin-top: 1.5rem;">
                已有账号? <a href="{{ url_for('login') }}">立即登录</a>
            </p>
        </div>
    </div>
</body>
</html>